<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.prime.com.tr/ui"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html">

    <body>

        <ui:composition template="../templates/default3.xhtml">         

            <ui:define name="content">

                <h:form id="updateLead" binding="#{leadManagerBean.loadUpdateLead}">
                    <p:panel header="Lead information" id="updateLead0">
                        <font class="fieldNote">*- Mandatory Field<br/><br/></font>
                        <table>
                            <tr>
                                <td width ="80px">Employee:</td>
                                <td width="200px"> <h:outputText  id="userId" value="#{leadManagerBean.userId}"> 
                                    </h:outputText> 

                                </td>
                            </tr>
                            <tr>
                                <td>Email:</td>
                                <td width="200px"> 
                                    <h:outputText id="email" value="#{leadManagerBean.email}" > 
                                    </h:outputText>
                                </td>

                                <td width="80px">Company:</td>
                                <td> 
                                    <h:outputText id="company"  value="#{leadManagerBean.company}" >                                       
                                    </h:outputText> 
                                </td>


                            </tr>      
                            <tr>
                                <td>First name:</td>
                                <td> 
                                    <h:outputText id="fname" value="#{leadManagerBean.firstName}" > 
                                    </h:outputText> 
                                </td>

                                <td>Title:</td>
                                <td>                                                                                
                                     <h:outputText id="title" value="#{leadManagerBean.title}" >
                                    </h:outputText> 
                                </td>

                            </tr>
                            <tr>
                                <td>Last name:</td>
                                <td> 
                                     <h:outputText id="lname" value="#{leadManagerBean.lastName}" > 
                                    </h:outputText>                         
                                </td>

                                <td>Status:</td>
                                <td>
                                    <h:outputText  id="status" value="#{leadManagerBean.status}"  >
                                    </h:outputText>                                    
                                </td>
                            </tr>


                            <tr>
                                <td>Telephone:</td>
                                <td>                                                                                
                                     <h:outputText  id="phone" value="#{leadManagerBean.phone}"  >
                                    </h:outputText> 
                                  
                                </td>

                                <td>Industry:</td>
                                <td>
                                    <h:outputText  id="industry" value="#{leadManagerBean.industry}"  >
                                    </h:outputText>                                    
                                </td>

                                <td>
                                    <p:commandButton id="btnViewLeadInquiries" value="View Inquiries" actionListener="#{salesInquiryManagerBean.viewInquiries}" 
                                                     ajax="true" update="updateLead" />
                                </td>

                            </tr>

                        </table>

                    </p:panel>
                    <p:panel header="Company Address (Optional)" id="updateLead2">
                        <table>

                            <tr >
                                <td width ="80px" valign="top" > Street:</td>
                                <td width="200px" valign="top"> 
                                    <h:outputText id="street" style="width:160px;height:60px;" value="#{leadManagerBean.street}" >
                                    </h:outputText> 

                                </td>
                                <td width="80px">City: <br/><br/> Country: </td>
                                <td width="200px">
                                     <h:outputText  id="city" value="#{leadManagerBean.city}">
                                    </h:outputText>  
                                    <br/><br/>
                                     <h:outputText id="country" value="#{leadManagerBean.country}">
                                    </h:outputText> 
                                </td>


                            </tr>
                            <tr >
                                <td valign ="top" >Postal: </td>
                                <td width="200px" valign ="top"> 
                                     <h:outputText id="postal" value="#{leadManagerBean.postal}" >                                     
                                    </h:outputText>  
                                    <br/>                                  
                                </td>




                            </tr>

                        </table>
                    </p:panel>
                    <p:panel header="Remark (Optional) " id="updateLead3">
                        <table>
                            <tr>
                                <td width ="80" valign="top" > Description:</td>
                                <td width="200" valign="top"> 
                                     <h:outputText id="description" style="width:160px;height:80px;" >
                                    </h:outputText>  

                                </td>

                                <td width="80">Annual revenue: <br/><br/> No. of Employee:</td>
                                <td width="200">
                                     <h:outputText id="revenue" value="#{leadManagerBean.revenue}">
                                    </h:outputText> 
                                    <br/><br/>
                                     <h:outputText id="no_emp" value="#{leadManagerBean.numEmployee}">
                                    </h:outputText> 
                                </td>
                            </tr>
                            
                          <tr>
                                <td colspan="5" class="btn"><p:commandButton id="btnBackToSearchLead" value="Back" actionListener="#{leadManagerBean.back}" ajax="true" update="updateLead" />                                </td>
                            </tr>
                        </table>
                    </p:panel>


                </h:form>
            </ui:define>        

        </ui:composition>

    </body>

</html>
